
import { RandomUtil } from "./common/random/RandomUtil"
import { AudioPlayer } from "./common/audio/AudioPlayer"
import {TimerMgr} from './common/timer/TimerMgr'

const { ccclass, property } = cc._decorator;

@ccclass
export default class Home extends cc.Component {

    @property(cc.Node)
    startBtn: cc.Node = null;

    // LIFE-CYCLE CALLBACKS:

    onLoad() {
        // this.startBtn.on(cc.Node.EventType.TOUCH_START, this.startGame, this)

        RandomUtil.ins().init(Math.round(1000000 + Math.random() * 8999999).toString());
        AudioPlayer.ins().init();


    }


    startGame() {
        console.info('start')
        cc.director.loadScene('game')
    }

    update(dt: number) {
    }
}
